<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/salesinfo/not_yet_shipped/q_not_yet_shipped.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/salesinfo/not_yet_shipped/q_not_yet_shipped.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'Sales_contractList',
                footer: "Foots",
                cnName: '未发货合同商品',
                name: 'not_yet_shipped/q_not_yet_shipped',
                url: "/q_not_yet_shipped/",
                sortName: "Goods_sub"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"Goods_sub":"","Goods_name":""});
            const searchFormOptions = ref([[{"title":"产品编码","field":"Goods_sub","type":"like"},{"title":"产品名称","field":"Goods_name","type":"like"}]]);
            const columns = ref([{field:'Goods_sub',title:'产品编码',type:'string',width:110,align:'left',sort:true},
                       {field:'Goods_name',title:'产品名称',type:'string',width:220,align:'left'},
                       {field:'Goods_size',title:'规格',type:'string',width:110,align:'left'},
                       {field:'Goods_price',title:'商品单价',type:'decimal',width:110,require:true,align:'left'},
                       {field:'Total_price',title:'商品总价',type:'decimal',width:110,align:'left'},
                       {field:'Goods_num',title:'合同数量',type:'float',width:110,require:true,align:'left'},
                       {field:'Remark',title:'Remark',type:'string',width:220,hidden:true,align:'left'},
                       {field:'AuditDate',title:'AuditDate',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'AuditStatus',title:'AuditStatus',type:'int',width:110,hidden:true,align:'left'},
                       {field:'AuditID',title:'AuditID',type:'int',width:110,hidden:true,align:'left'},
                       {field:'Auditor',title:'Auditor',type:'string',width:120,hidden:true,align:'left'},
                       {field:'CreateID',title:'CreateID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Creator',title:'Creator',type:'string',width:100,hidden:true,align:'left'},
                       {field:'CreateDate',title:'CreateDate',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'ModifyID',title:'ModifyID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Modifier',title:'Modifier',type:'string',width:100,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'ModifyDate',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'Logistics_status',title:'发货状态',type:'int',bind:{ key:'发货状态',data:[]},width:110,align:'left'},
                       {field:'Install_status',title:'安装状态',type:'int',bind:{ key:'安装状态',data:[]},width:110,require:true,align:'left'},
                       {field:'Tax_exclusive_total_price',title:'Tax_exclusive_total_price',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'Sales_contractList',title:'Sales_contractList',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'Sales_contract',title:'Sales_contract',type:'guid',width:110,hidden:true,align:'left'},
                       {field:'Tax_exclusive_goods_price',title:'Tax_exclusive_goods_price',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'CostPrice',title:'CostPrice',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'Voucher_sub',title:'Voucher_sub',type:'string',width:110,hidden:true,align:'left'},
                       {field:'weifahuo',title:'weifahuo',type:'float',width:110,hidden:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
